# hoho.spec
# -*- mode: python ; coding: utf-8 -*-

import os
from PyInstaller.utils.hooks import collect_all

block_cipher = None

source_files = [
    'main.py',  # 主文件
]

data_files = [
    ('ddos', 'ddos'),
    ('ddos_cn', 'ddos_cn'),
    ('hoho_ddos2.png', 'hoho_ddos2.png'),
    ('main_cn.py', 'main_cn.py'),
    ('hohos2.py', 'hohos2.py'),
    ('Pictures', 'Pictures'),
]

# data_files += collect_all('some_package')

a = Analysis(
    source_files,
    pathex=['.'],
    binaries=[],
    datas=data_files,
    hiddenimports=[],
    hookspath=[],
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    icon='sansjtw.ico'
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='hoho',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    icon='sansjtw.ico'
)

coll = COLLECT(
    exe,
    a.binaries,
    a.zipfiles,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='hoho ddos2',
    icon=['sansjtw.ico'],
    
)
